package com.wy.authority.mapper;

import com.wy.authority.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author 忘忧
 * @Date Created in 2021/1/13 9:24
 * @Description:
 */
@Mapper
@Repository
public interface MenuMapper {
   //查找
    List<Menu> find();
    List<Menu> find2(Integer menu_id);

  //查找菜单
  List<Menu> find_menu();

  //插入数据
    int insert(Menu menu);

   //删除数据
   int delete(int menu_id);

   //根据ID查询
    List<Menu> findbyid(int menu_id);

   //修改
   int update(Menu menu);
}

